import { createApp } from 'vue';
import { createPinia } from 'pinia';
import 'reset.css';

import App from './App';
import router from './router';
import './assets/main.less';
import { useSession } from './stores/sesstion';
import { useAccount } from './stores/account';

const app = createApp(App);

app.use(createPinia());
app.use(router);
app.mount('#app');


const session = useSession();
const account = useAccount();
session.init();
if (session.isLogin) {
    account.init();
}

